﻿using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MathematicallySafe.Armourer
{
    public class ArmouryServiceFactory
    {
        private IArmouryService _armouryService;

        #region Singleton pattern

        private static readonly ArmouryServiceFactory _instance = new ArmouryServiceFactory();

        private ArmouryServiceFactory() { }

        public static ArmouryServiceFactory Instance
        {
            get { return _instance; }
        }

        #endregion

        public IArmouryService GetArmouryService()
        {
            if (_armouryService == null)
            {
                _armouryService = new Armourer();
            }

            return _armouryService;
        }

    }
}
